package com.learn.practice;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(1)
public class MyCommandLineRunner implements CommandLineRunner {
    private static final Log logger = LogFactory
            .getLog(MyCommandLineRunner.class);

    @Override
    public void run(String... args) throws Exception {
        logger.info("my command line1");
    }
}
